package ai.cast.reconnaissance.mcp_tool;

import org.springframework.ai.tool.annotation.Tool;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component
public class TimeTool {

    @Tool(description = "获取当前时间")
    public String getTime() {
        System.out.println("=============");
        return new Date().toString();
    }

    //todo 需要添加仿真id。查询数据库获取时间
    @Tool(description = "获取针对当前仿真的光学情况，如白天或晚上")
    public String getSimulationTime() {
        System.out.println("=============");
        return new Date().toString();
    }
}
